xenpaging: break endless loop during inital page-out with large pagefiles
authorKeir Fraser <keir@xen.org>
Fri, 26 Nov 2010 14:15:21 +0000 (14:15 +0000)
committerKeir Fraser <keir@xen.org>
Fri, 26 Nov 2010 14:15:21 +0000 (14:15 +0000)
commit0be9573a9f9883af83762684a0e27ed5a514041c
tree48c4ae2967e1faf9f9140d69725cacfd4e8cb0b3
parent353c65ce23877d10b13b6ce93725509b1564cff7
xenpaging: break endless loop during inital page-out with large pagefiles

To allow the starting for xenpaging right after 'xm start XYZ', I
specified a pagefile size equal to the guest memory size in the hope
to catch more errors where the paged-out state of a p2mt is not
checked.

While doing that, xenpaging got into an endless loop because some
pages cant be paged out right away. Now the policy reports an error if
the gfn number wraps.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Already-Acked-by: Patrick Colp <pjcolp@cs.ubc.ca>
Already-Acked-by: Keir Fraser <keir.fraser@citrix.com>
tools/xenpaging/policy_default.c
tools/xenpaging/xenpaging.c